from enum import Enum


class Tag(Enum):
    IF = 0
    THEN = 1
    AND = 2
    OR = 3
    COMMA = 4
    STOP = 5
    DEFENSE = 6
    ATTACK = 7
    POWERUP = 8
    POWER = 9
    I = 10
    YOU = 11
    ZERO = 12
    ONE = 13
    TWO = 14
    THREE = 15
    FOUR = 16
    FIVE = 17
    SIX = 18
    SEVEN = 19
    EIGHT = 20
    NINE = 21
    TEN = 22
    NONE = 23
    MORE = 24
    EQUAL = 25
    MOREEQUAL = 26
    LESSEQUAL = 27
    NOEQUAL = 28

# 为方便后续代码，Kind枚举类务必保证PUNC和GRAMMER是前两个
class Kind(Enum):
    PUNC = 0
    GRAMMER = 1
    OBJECT = 2
    ATTRIBUTE = 3
    SPECIAL = 4
    RELATION = 5
    NUM = 6


class ClauseType(Enum):
    IF_CLAUSE = 0
    THEN_CLAUSE = 1
    AND_CLAUSE = 2
    OR_CLAUSE = 3
